package com.easpeed.comon.bean

/**
 * Created by bigyu on 2024/11/11 14:52
 * com.easpeed.comon.bean
 */
class ChartControlBean {


    var width: Int = 0
    var height: Int = 0


    var startX: Float = 0.0f
    var endX: Float = 0.0f

    var startY: Float = 0.0f
    var endY: Float = 0.0f

    var scaleX: Float = 0.0f
    var scaleY: Float = 0.0f


    var values = floatArrayOf()

    constructor(width: Int, height: Int, values: FloatArray) {
        this.width = width
        this.height = height
        this.values = values
    }

    constructor(startX: Float, endX: Float, scaleX: Float) {
        this.scaleX = scaleX
        this.startX = startX
        this.endX = endX
    }

    constructor(startX: Float, endX: Float, startY: Float, endY: Float, scaleX: Float, scaleY: Float) {
        this.scaleX = scaleX
        this.startY = startY
        this.endY = endY
        this.startX = startX
        this.scaleY = scaleY
        this.endX = endX
    }
}